<?
/**
 * class <b>Hli_BookingResponseType Class</b>
 * Published 21/12/2010 03:45:13
 *
 * The message structure containing booking response information.
 *
 * @author Lars Sorhus (lars@saucecode.com.au)
 * @copyright sauceCode Pty Ltd.
 * @version 2.0.4.342.
 * @internal It's not recommended at all to modify this code.
 */
class Hli_BookingResponseType extends Hli_Serializer{
	public function  __construct(){
		parent::__construct();
	}
	/**
    * Sets the response object.
    *
	 * @method setRequestObject
	 * @param Array
	 * @return void
	 */
	public function setResponseObject($value){
		$this->__response=$value;
		$this->setAck($value["Ack"]);
		$this->setHAWB($value["HAWB"]);
		$this->setExternalReferenceCode($value["ExternalReferenceCode"]);
		//Loop Through Errors
		if(count($value["ErrorArray"]["Errors"])>0){
			for($c=0;$c<count($value["ErrorArray"]["Errors"]);$c++){
				$err=$value["ErrorArray"]["Errors"][$c];
				$this->addError(new Hli_ErrorType($err["Code"],$err["Message"],$err["Severity"]));
			}
		}
	}

	/**
    * Gets the House Airway Bill (HAWB)
    *
	 * @method getHAWB
	 * @return string
	 */
	public function getHAWB(){
		return($this->__response["HAWB"]);
	}
	/**
    * Sets the House Airway Bill (HAWB)
    *
	 * @method setHAWB
	 * @param string
	 * @return void
	 */
	public function setHAWB($value){
		$this->__response["HAWB"]=$value;
	}

	/**
    * Gets the external reference code.
    *
	 * @method getExternalReferenceCode
	 * @return string
	 */
	public function getExternalReferenceCode(){
		return($this->__response["ExternalReferenceCode"]);
	}
	/**
    * Sets the external reference code.
    *
	 * @method setExternalReferenceCode
	 * @param string
	 * @return void
	 */
	public function setExternalReferenceCode($value){
		$this->__response["ExternalReferenceCode"]=$value;
	}
}
?>
